package com.w1.security.utiles;

import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author mingyifan
 * @date 2022-02-15 15:09
 */
public class WebUtils {
    public static String renderString(HttpServletResponse response,String st){
        response.setStatus(200);
        response.setContentType("application/json");
        response.setCharacterEncoding("utf-8");
        try {
            response.getWriter().print(st);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }

}
